package com.tgy;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/***
 * @ClassName: Test
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 10:01 2021/12/28
 * @version : V1.0
 */
public class Test {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"consumer.xml"});
        context.start();
        TgyProvider tgyProvider = (TgyProvider)context.getBean("TgyProvider");// 获取远程服务代理
        String say = tgyProvider.say();
        System.out.println(say);
    }

}
